import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';
import 'package:get/get.dart';

import '../../resources/colours.dart';
import '../base/qkd_text.dart';

class FeeLine extends StatelessWidget {
  const FeeLine({super.key, required this.extensionContext});

  final ExtensionContext extensionContext;

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.fromLTRB(8, 0, 8, 12),
      child: Row(
        children: [
          Expanded(
              child: Container(
                height: 0.5,
                color: Colours.main,
              )
          ),
          Padding(
            padding: const EdgeInsets.symmetric(horizontal: 11),
            child: QkdText("以下${extensionContext.node.text}为付费内容",
                color: Colours.main, fontSize: 12
            )
          ),
          Expanded(
              child: Container(
                height: 0.5,
                color: Colours.main,
              )
          ),
        ],
      )
    );
  }
}
